package date0604_4;

/*
 * 数组的缺点：无法自动增长空间
 */

public class ArrayTest {

	public static void main (String[] args) {
		
		Object[] array = new Object[5];
		
		array[0] = 100.1;//Double
		array[4] = 400;//Integer
		
		//5-->6
		array[5] = 500; //ArrayIndexOutOfBoundsException
		
	}
	
}
